<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/12/14
 * Time: 18:09
 */
$owr_year_month                 = $route->bodyParams['owr_year_month'];               //年月
$owr_uid                        = $route->bodyParams['owr_uid'];                       //用户ID
$owr_salary                     = $route->bodyParams['owr_salary'];                   //固定薪资
$owr_post_salary                = $route->bodyParams['owr_post_salary'];              //岗位工资
$ou_workage_salary              = $route->bodyParams['ou_workage_salary'];            //工龄工资
$ou_insurance_and_housing_fund  = $route->bodyParams['ou_insurance_and_housing_fund']; //五险一金
$owr_commission                 = $route->bodyParams['owr_commission'];                //提成
$owr_duty_money                 = $route->bodyParams['owr_duty_money'];                //责任扣款
$owr_desc                 = $route->bodyParams['owr_desc'];                //备注
$owr_status                 = $route->bodyParams['owr_status'];                //审核状态



//写入数组
$insertArr = [
    'owr_year_month'                  => $owr_year_month,
    'owr_uid'                          => $owr_uid,
    'owr_salary'                       => $owr_salary,
    'owr_post_salary'                 => $owr_post_salary,
    'ou_workage_salary'               => $ou_workage_salary,
    'ou_insurance_and_housing_fund' => $ou_insurance_and_housing_fund,
    'owr_commission'                  => $owr_commission,
    'owr_duty_money'                  => $owr_duty_money,
    'owr_crate_time'                  => time(),
    'owr_desc'                  => $owr_desc,
    'owr_status'                  => $owr_status,
];
//执行写入语句
$rsData = $db->mysqlDB->insert("oa_wage_record",$insertArr);

//返回成功结果
$response->responseData( true, $rsData );